package com.mce.nebula.entity;

import com.mce.nebula.common.BaseEntity;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 应用市场实体，对应Python的AppMarket模型
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "app_market")
public class AppMarket extends BaseEntity {
    
    @Column(name = "name", length = 64, nullable = false)
    private String name;
    
    @Column(name = "url", length = 255, nullable = false)
    private String url;
    
    @Column(name = "domain", length = 64, nullable = false)
    private String domain;
    
    @Column(name = "access_key", length = 255)
    private String accessKey;
    
    @Column(name = "enterprise_id", length = 32, nullable = false)
    private String enterpriseId;
    
    @Column(name = "type", length = 32, nullable = false)
    private String type;
    
    @Column(name = "user_id")
    private Integer userId;
    
    @Column(name = "is_personal", nullable = false)
    private Boolean isPersonal = false;
}